package com.tosit.ssmdemoxml.controller;

import com.tosit.ssmdemoxml.common.domain.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller

public class UserController {
    @ResponseBody
    @GetMapping("/query")
    public  Object queryAll(){
        System.out.println("heh");
        User user = new User("id001","我是谁");
        return user;
    }
}
